package com.forever7776.life.core.entity.shiro;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 
 * </p>
 *
 * @author kz
 * @since 2018-01-18
 */
@TableName("shiro_authority_setting")
public class ShiroAuthoritySetting extends Model<ShiroAuthoritySetting> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 链接地址
     */
	private String url;
    /**
     * 需要具备的权限
     */
	@TableField("permission_init")
	private String permissionInit;
    /**
     * 排序
     */
	private Integer sort;
    /**
     * 状态(0:正常  1:删除)
     */
	private Integer status;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getPermissionInit() {
		return permissionInit;
	}

	public void setPermissionInit(String permissionInit) {
		this.permissionInit = permissionInit;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "ShiroAuthoritySetting{" +
			", id=" + id +
			", url=" + url +
			", permissionInit=" + permissionInit +
			", sort=" + sort +
			", status=" + status +
			"}";
	}
}
